package com.dhgate.spu.analysis.util;

import java.util.Comparator;


/** 
 * @author:      wangguodong 
 * @create:      2014-3-10 上午11:33:05 
 * @description: 
 */
public class ComparatorUtil {
	
	public static final Comparator<String> STR_LENGTH_COMPARATOR = new StrLengthComparator();
	
	static class StrLengthComparator implements Comparator<String>{
		  public int compare(String o1, String o2) {
		    return -(o1.length() - o2.length());//按照长度比较
		  }
	}
	

}
